﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Search_Document
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table id="mas" style="display: none">
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="FeaturedContent" runat="server">
    <h2>
        Search_Document</h2>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ScriptsSection" runat="server">
    <script type="text/jscript">
        $(function () {


            $("#mas").flexigrid({
                url: '<%= Url.Action("Document_List") %>',
                dataType: 'json',
                colModel: [
				{ display: 'DOC.Type', name: '_DOCType', width: 100, sortable: true },
				{ display: 'Docname', name: '_Filename', width: 250, sortable: true },
				{ display: 'Size', name: '_Size', width: 250, sortable: true },
				{ display: 'Pattern', name: '_Pattern', width: 250, sortable: true },
				{ display: 'Revision', name: '_Rev', width: 250, sortable: true },
				{ display: 'Issue Date', name: '_IssueDT', width: 250, sortable: true },
				{ display: 'Expire Date', name: '_ExpDT', width: 250, sortable: true },
				{ display: 'SOURCE', name: '_SOURCE', width: 250, sortable: true },
				{ display: 'Dar No.', name: '_Docno', width: 250, sortable: true }
				],
                sortname: '_DOCType',
                sortorder: 'asc',
                usepager: true,
                rp: 15,
                width: 900,
                height: 380, singleSelect: true
            });
        });
    </script>
</asp:Content>
